package com.feeyin.radar.commons;

import java.beans.PropertyEditorSupport;

public class BigDecimalPropertyEditor extends PropertyEditorSupport
{
  public void setAsText(String text)
    throws IllegalArgumentException
  {
    if (StringUtils.isEmpty(text))
    {
      setValue(null);
    }
    else setValue(NumberUtils.getBigDecimal(text));
  }
}